<?php
namespace Admin\Model;
use Think\Model;

class SysLangtableModel extends Model{

	public function getLangtable($tblName)
	{
		$lang = \Common\Common\WebAction::getLangField();
		$sql = 	"select `fld_name`, IFNULL(`' . $lang . '`,`fld_name`) as `fld_value` from sys_langtable" .
				" where `tbl_name`='" . $tblName . "'";
		return M()->query($sql);
	}
}